/**
 * Created by cc
 * Description:
 * User: CZH
 * Date: 2022-09-28
 * Time: 14:54
 */
public class TestDemo {

    public static void main2(String[] args) {
        MyQueueLinked myQueueLinked = new MyQueueLinked();
        myQueueLinked.offer(1);
        myQueueLinked.offer(2);
        myQueueLinked.offer(3);
        System.out.println(myQueueLinked.peek());
        myQueueLinked.poll();
        myQueueLinked.peek();
        System.out.println(myQueueLinked.poll());
        System.out.println(myQueueLinked.isEmpty());
        System.out.println(myQueueLinked.size());
        System.out.println(myQueueLinked.poll());
        System.out.println(myQueueLinked.poll());

    }

    public static void main1(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        myStack.push(4);
        System.out.println(myStack.empty());
        System.out.println(myStack.peek());
        System.out.println(myStack.pop());
        System.out.println(myStack.peek());

        System.out.println(myStack.pop());
        System.out.println(myStack.pop());
        System.out.println(myStack.pop());
        System.out.println(myStack.pop());

    }
}
